<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="../common/taglibs.jsp"%>
<c:set var="current_menu" value="faq" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title> faq- handmade silk rugs, hand knotted silk carpet, Persian rug, oriental rugs, traditional rugs, rugs runner-yilong carpet factory</title>
	    <meta name="keywords" content="silk rugs price, silk carpet factory, wholesale silk rugs, silk rug online, Persian rugs, traditional rug"/>
		<meta name="Description" content="Chinese silk rugs (silk carpets)factory, Professional producer of Persian silk rugs, Turkish silk carpet, Kashmir silk rug, china silk rugs, hand knotted silk carpets provided by Henan yilong silk carpet factory" />
		<%@ include file="../common/headtags.jsp"%>
<script type="text/javascript" src="${pageScope.ctx}/js/index.js"></script>
<script type="text/javascript" src="${pageScope.ctx}/js/faq.js"></script>
	</head>
	<body>
		<div id="page" class="w950">
			<%@ include file="../top.jsp"%>
			<div id="content">
				<div class="layout grid-s200m0">
					<div class="col-main">
						<div class="main-wrap">
                          <%@ include file="../left.jsp"%>                       
						</div>
					</div>
					<div class="col-sub">
						<div class="navi">
                           <a href="${pageScope.ctx}/">home</a> &gt; FAQ
						</div>
						
						<div class="index-box  index-box-thin  index-box-thin-dark titlebox">
							<h3>
								FAQ
							</h3>							
							<ul class="newslist">
							  <s:iterator value="resultPage.result">
							    <fmt:parseDate var="date" value="${addtime}" pattern="yyyyMMddHHmmss"/>							    
							   <li><span class="time"><fmt:formatDate value="${date}" pattern="MM / dd / yyyy"/></span><a href="${pageScope.ctx}/faq/a/${id}">Q:${question}</a> </li>
							  </s:iterator>
							</ul>
							<div class="pagebar layout">	
							    <s:set name="total" value="resultPage.totalPage" scope="page"/>
							    <s:set name="current" value="resultPage.currentPage" scope="page"/>
							    <c:forEach var="n" begin="1" end="${pageScope.total}">
							      <c:choose>
							         <c:when test="${n eq pageScope.current}">
							            <span class="cur">${n}</span>
							         </c:when>
							         <c:otherwise>
							           <a href="${pageScope.ctx}/faq/p/${n}">${n}</a>
							         </c:otherwise>
							      </c:choose>
							    </c:forEach>							    
							    <c:choose>
								    <c:when test="${pageScope.total eq pageScope.current}">
								      <span><i>NEXT</i></span>
								    </c:when>
								    <c:otherwise>
								      <a href="${pageScope.ctx}/faq/p/${pageScope.current+1}"><i>NEXT</i></a>
								    </c:otherwise>
								</c:choose>    	  							  						
							</div>	
						</div>	
						<div class="index-box  index-box-thin  index-box-thin-green  box" >
						 <div class="question">
						 <form id="faqform" method="post" action="${pageScope.ctx}/faq/add">
						   <table>
						     <tr><td>Question:</td><td><input type="text" id="question" name="faq.question" class="field"/></td></tr>
						     <tr><td>Asker:</td><td><input type="text" id="asker" name="faq.asker" class="field"/></td></tr>
						     <tr><td>Description:</td><td><textarea id="detail" name="faq.detail"></textarea></td></tr>
						     <tr><td align="center" colspan="2"><input type="button" id="bt" value=" Submit "/>&nbsp; &nbsp;<input type="reset" value=" Reset "/></td></tr>
						   </table>			
						 </form>
						 </div>
						</div>					
					</div>
				</div>
			</div>
			<%@ include file="../bottom.jsp"%>
		</div>
		<%@ include file="../common/foottags.jsp"%>
	</body>
</html>

